package cn.lby.tp.downloadtest;

import android.annotation.SuppressLint;
import android.content.Context;
import android.os.Bundle;

import androidx.appcompat.app.AppCompatActivity;

import com.liulishuo.okdownload.OkDownload;
import com.liulishuo.okdownload.core.file.CustomProcessFileStrategy;

import butterknife.ButterKnife;

public class BaseApplication extends AppCompatActivity {

    @SuppressLint("StaticFieldLeak")
    public static Context context;
    public static String DOWNLOAD_PATH;


    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(getLayout());
        ButterKnife.bind(this);
        context = this;
        DOWNLOAD_PATH = this.getExternalCacheDir().getPath();


    }

    protected int getLayout() {
        return 0;
    }


}
